package com.readpost.service;

import com.readpost.doman.Entity.User;

import java.util.Map;

public interface UserService {

    //根据id获取用户信息
    User getUserById(int id);


    //用户登录
    User userLogin(String username, String password);

    //用户注册
    void userRegister(String username, String password);

    //根据用户名获取用户信息
    User getUserByUsername(String user);

    //更新用户信息
    void updateUser(User user, Integer userid);

    //更新用户头像
    void updatePicture(String avatarUrl, Integer userid);

    void updatePwd(Map<String,Object> user);

    void sendEmailCode(Map<String, Object> emailParams, Integer userid);

    void bindEmail(Map<String, Object> emailParams);
}
